package java67_12;

public class Car {
	String brand;//
	int oil;

	public void start() {
		System.out.println(brand + "启动了");
	}

	public void show() {
		System.out.println("这个车子是" + brand);
		System.out.println("现在油量是" + oil + "升");
	}

	public void run() {
		if (oil == 0) {
			System.out.println("停止了,没油了");
		} else {
			oil--;
			System.out.println("行驶了20公里");
		}
	}

}
